<template>
  <view>
    <NavBar :list="list" @navClick="navClick"></NavBar>
    {{ welcome }}
    <ImageView
      src="https://c-ssl.dtstatic.com/uploads/blog/202103/31/20210331160001_9a852.thumb.1000_0.jpg"
      :round="true"
      @imgClick="imgClick"
    ></ImageView>
	
	<van-button>vant ui 框架</van-button>
  </view>
</template>

<script>
import NavBar from '../../components/NavBar.vue'
import ImageView from '../../components/Base/ImageView.vue'
export default {
  components: {
    NavBar,
    ImageView,
  },
  data() {
    return {
      welcome: 'welcome',
      list: ['正在上映', '热门电影', '即将上映'],
    }
  },
  methods: {
    navClick({ index }) {
      console.log('index:', index)
    },
    imgClick() {
      console.log('ingCLick')
      // wx.navigateTo({
      //   url: '/pages/index/index',
      // })
      wx.switchTab({
        url: '/pages/index/index',
      })
    },
  },
}
</script>

<style lang="scss"></style>
